package com.tduck.cloud.form.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tduck.cloud.common.entity.BaseEntity;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@TableName(value = "form_score", autoResultMap = true)
public class FormScoreEntity extends BaseEntity<FormScoreEntity> {
    /**
     * 表单标识
     */
    @NotBlank
    private String formKey;
    /**
     * 分数
     */
    @NotNull
    @Min(value = 0,message = "分值不能小于0")
    private Double score;

    /**
     * 标签
     */
    @NotBlank
    private String label;
}
